package com.hzncc.flowable_diboot.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.FileVO;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;
import com.diboot.file.entity.FileRecord;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.entity.OppoFlowDetail;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
/**
* 商机流程明细项 VO定义
* @author MyName
* @version 1.0
* @date 2024-06-11
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class OppoFlowDetailListVO extends OppoFlowDetail  {
private static final long serialVersionUID = 1997216501142558780L;
    /**
    * 类型 关联字典选项
    */
    @BindDict(
    type = "detailType",
    field = "type"
    )
    private LabelValue typeLabel;

    /**
    * 创建人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.create_by = id"
     )
    private String createByLabel;

    /**
    * 更新人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.update_by = id"
     )
    private String updateByLabel;

}